package com.lv.listener;

import org.springframework.boot.context.event.ApplicationPreparedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * Created by lvjilei on 2018/4/18.
 */
public class MyApplicationPrepareListener implements ApplicationListener<ApplicationPreparedEvent>{
    @Override
    public void onApplicationEvent(ApplicationPreparedEvent event) {
        ConfigurableApplicationContext context = event.getApplicationContext();
    }
}
